Function at 0x4973a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6ecfd8
push eax
mov al, byte [0x834958]
mov dword fs:[0], esp
sub esp, 0x158
test al, 1
push ebx
jne 0x4973f3
mov bl, al
lea eax, [esp + 7]
push eax
lea ecx, [esp + 9]
push 0
or bl, 1
push ecx
mov ecx, 0x834948
mov byte [0x834958], bl
call fcn.004981d0
push 0x497aa0
call fcn.006601e7
add esp, 4
mov al, byte [0x83495b]
test al, al
jne 0x497a08
mov bl, byte [esp + 5]
push ebp
push esi
push edi
xor edi, edi
or ebp, 0xffffffff
push 8
call fcn.00652710
add esp, 4
test eax, eax
je 0x497425
mov dword [eax + 4], edi
mov dword [eax], vtable.t_creature_stack_factory.0
jmp 0x497427
xor eax, eax
push eax
lea ecx, [esp + 0x18]
call fcn.006081d0
push 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x174], 0
mov byte [esp + 0x2c], bl
call fcn.00407e50
mov edx, edi
lea ecx, [esp + 0x38]
mov byte [esp + 0x170], 1
call fcn.00418560
mov edx, eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x170], 2
call fcn.00418070
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 8]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0xc]
mov dword [eax + 0xc], edx
mov dword [esp + 0x34], ecx
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x174], 2
call fcn.00407e50
lea ecx, [esp + 0x38]
mov byte [esp + 0x170], 1
push 1
call fcn.00407e50
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.00419700
add esp, 0xc
mov esi, eax
push esi
lea ecx, [esp + 0xa8]
mov byte [esp + 0x174], 5
call fcn.0040ca10
add esi, 0x10
lea ecx, [esp + 0xb4]
push esi
mov byte [esp + 0x174], 6
call fcn.00498e30
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, 0x834948
mov byte [esp + 0x178], 7
call fcn.00498200
lea edx, [esp + 0x24]
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x98]
call fcn.005ca5a0
lea ecx, [esp + 0xb4]
mov byte [esp + 0x170], 8
call fcn.005f0280
mov byte [esp + 0x170], 5
lea ecx, [esp + 0xa4]
push 1
call fcn.00407e50
lea ecx, [esp + 0x78]
mov byte [esp + 0x170], 9
call fcn.005f0280
lea ecx, [esp + 0x68]
mov byte [esp + 0x170], 1
push 1
call fcn.00407e50
lea ecx, [esp + 0x28]
mov byte [esp + 0x170], 0
push 1
call fcn.00407e50
xor edx, edx
mov dword [esp + 0x170], ebp
mov eax, dword [esp + 0x1c]
cmp eax, edx
je 0x4975e1
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x14]
cmp ecx, esi
jne 0x4975cc
cmp eax, edx
mov dword [esp + 0x1c], edx
je 0x4975e1
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
jmp 0x4975e1
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov dword [esp + 0x1c], edx
inc edi
cmp edi, 0x4a
jl 0x49740c
xor esi, esi
mov bl, 0x10
push 0xc
call fcn.00652710
add esp, 4
test eax, eax
je 0x49760c
mov dword [eax + 4], esi
mov byte [eax + 8], 1
mov dword [eax], vtable.t_hero_factory.0
jmp 0x49760e
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
call fcn.006081d0
push 0xc
mov dword [esp + 0x174], 0xa
call fcn.00652710
add esp, 4
test eax, eax
je 0x497640
mov dword [eax + 4], esi
mov byte [eax + 8], 0
mov dword [eax], vtable.t_hero_factory.0
jmp 0x497642
xor eax, eax
push eax
lea ecx, [esp + 0x88]
call fcn.006081d0
mov cl, byte [esp + 0x11]
push 0
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
mov byte [esp + 0x174], 0xb
call fcn.00407e50
push 1
mov edx, esi
lea ecx, [esp + 0xc4]
mov byte [esp + 0x174], 0xc
call fcn.00497a60
mov edx, eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0x170], 0xd
call fcn.00418070
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 8]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0xc]
mov dword [eax + 0xc], edx
mov dword [esp + 0x44], ecx
push 1
lea ecx, [esp + 0xd4]
mov byte [esp + 0x174], 0xd
call fcn.00407e50
lea ecx, [esp + 0xc0]
mov byte [esp + 0x170], 0xc
push 1
call fcn.00407e50
lea ecx, [esp + 0x48]
mov al, byte [esp + 0x11]
push 0
mov byte [esp + 0x4c], al
call fcn.00407e50
push 0
mov edx, esi
lea ecx, [esp + 0xa8]
mov byte [esp + 0x174], bl
call fcn.00497a60
mov edx, eax
lea ecx, [esp + 0xe0]
mov byte [esp + 0x170], 0x11
call fcn.00418070
mov edx, dword [esp + 0x4c]
mov ecx, dword [eax + 4]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 8]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0xc]
mov dword [eax + 0xc], edx
mov dword [esp + 0x54], ecx
push 1
lea ecx, [esp + 0xe4]
mov byte [esp + 0x174], 0x11
call fcn.00407e50
lea ecx, [esp + 0xa4]
mov byte [esp + 0x170], bl
push 1
call fcn.00407e50
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
lea edx, [esp + 0xfc]
push ecx
push edx
call fcn.00419700
add esp, 0xc
mov edi, eax
push edi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x174], 0x14
call fcn.0040ca10
add edi, 0x10
lea ecx, [esp + 0x78]
push edi
mov byte [esp + 0x174], 0x15
call fcn.00498e30
lea eax, [esp + 0x68]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, 0x834948
mov byte [esp + 0x178], 0x16
call fcn.00498200
lea edx, [esp + 0x24]
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x98]
call fcn.005ca5a0
lea ecx, [esp + 0x78]
mov byte [esp + 0x170], 0x17
call fcn.005f0280
lea ecx, [esp + 0x68]
mov byte [esp + 0x170], 0x14
push 1
call fcn.00407e50
lea ecx, [esp + 0x108]
mov byte [esp + 0x170], 0x18
call fcn.005f0280
lea ecx, [esp + 0xf8]
mov byte [esp + 0x170], bl
push 1
call fcn.00407e50
lea ecx, [esp + 0x84]
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0x134]
push edx
push eax
call fcn.00419700
add esp, 0xc
push eax
lea ecx, [esp + 0x118]
mov byte [esp + 0x174], 0x19
call fcn.00498e60
lea ecx, [esp + 0x114]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, 0x834948
mov byte [esp + 0x178], 0x1a
call fcn.00497fe0
lea ecx, [esp + 0x114]
mov byte [esp + 0x170], 0x19
call fcn.00497c50
lea ecx, [esp + 0x130]
mov byte [esp + 0x170], bl
call fcn.00497bb0
lea ecx, [esp + 0x48]
mov byte [esp + 0x170], 0xc
push 1
call fcn.00407e50
mov byte [esp + 0x170], 0xb
push 1
lea ecx, [esp + 0x3c]
call fcn.00407e50
lea ecx, [esp + 0x84]
mov byte [esp + 0x170], 0xa
call fcn.005f0280
lea ecx, [esp + 0x28]
mov dword [esp + 0x170], ebp
call fcn.005f0280
inc esi
cmp esi, 0xb
jl 0x4975ef
push 4
call fcn.00652710
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x170], 0x1b
je 0x497939
mov ecx, eax
call fcn.00497cf0
mov esi, eax
jmp 0x49793b
xor esi, esi
lea eax, [esp + 0x12]
lea ecx, [esp + 0x58]
push eax
push str.hero.Random_Hero
mov dword [esp + 0x178], ebp
call fcn.0044d1d0
push esi
lea ecx, [esp + 0x9c]
mov dword [esp + 0x174], 0x1c
call fcn.006081d0
lea ecx, [esp + 0x98]
lea edx, [esp + 0x58]
mov bl, 0x1d
push ecx
push edx
lea ecx, [esp + 0x154]
mov byte [esp + 0x178], bl
call fcn.004980e0
push eax
lea eax, [esp + 0xf4]
push eax
mov ecx, 0x834948
mov byte [esp + 0x178], 0x1e
call fcn.00497fe0
lea ecx, [esp + 0x14c]
mov byte [esp + 0x170], bl
call fcn.00497c50
lea ecx, [esp + 0x98]
mov byte [esp + 0x170], 0x1c
call fcn.005f0280
lea ecx, [esp + 0x58]
mov dword [esp + 0x170], ebp
push 1
call fcn.00407e50
mov byte [0x83495b], 1
mov eax, 0x834948
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
add esp, 0x164
ret
mov ecx, dword [esp + 0x15c]
mov eax, 0x834948
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret