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

Disassembly:
push 0xffffffffffffffff
push 0x4b45b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [0x4e641c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], eax
push 0xf007
lea ecx, [esp + 0x1c]
mov dword [esp + 0x70], 0
call fcn.00496627
push str.market
mov ecx, esi
call fcn.004115f0
push eax
lea ecx, [esp + 0x18]
call fcn.00491a3a
push str.codelist
mov ecx, esi
mov byte [esp + 0x70], 1
call fcn.004115f0
push eax
lea ecx, [esp + 0x30]
call fcn.00491a3a
push str.wt_startup
mov ecx, esi
mov byte [esp + 0x70], 2
call fcn.004115f0
push eax
lea ecx, [esp + 0x2c]
call fcn.00491a3a
push str.apptype
mov ecx, esi
mov byte [esp + 0x70], 3
call fcn.004115f0
push eax
lea ecx, [esp + 0x28]
call fcn.00491a3a
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x6c], 4
mov eax, dword [ecx - 8]
test eax, eax
jne 0x416ac1
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x416ac1
mov al, byte [eax]
and al, 0xf8
mov byte [esp + 0x20], al
mov edx, dword [esp + 0x20]
and edx, 0xff
lea eax, [esp + 0x14]
push edx
push 0x4dc6d4
push eax
call fcn.0048ea3f
add esp, 0xc
lea edi, [esi + 0x158]
mov ecx, edi
push str._nmarket_old
push str._nmarket
call fcn.0048e336
mov ecx, dword [0x4e641c]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push str.market_s_n
push eax
mov byte [esp + 0x78], 5
call fcn.0048ea3f
add esp, 0xc
mov ecx, edi
push 0x27
call fcn.0048e697
test eax, eax
jle 0x416ab3
mov ecx, dword [esp + 0x20]
push ecx
push eax
mov ecx, edi
call fcn.0048e281
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 4
call fcn.004919cc
push 0xa
lea ecx, [esp + 0x4c]
call fcn.0049118c
mov edx, dword [esp + 0x14]
mov byte [esp + 0x6c], 6
mov eax, dword [edx - 8]
test eax, eax
jne 0x416b89
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x416b7b
mov ecx, dword [0x4e641c]
mov dword [esp + 0x1c], ecx
mov bl, 7
push 0xf01b
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], bl
call fcn.00496627
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00491741
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
call fcn.00416750
mov ecx, dword [0x4e641c]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x74], 8
call fcn.004912bd
test eax, eax
je 0x416b5e
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00491b05
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], bl
call fcn.004919cc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 6
call fcn.004919cc
jmp 0x416b89
push 0xf018
lea ecx, [esp + 0x18]
call fcn.00496627
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x416e1a
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x416bc0
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00491741
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
call fcn.00416750
lea ecx, [esp + 0x34]
call fcn.0049095e
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push 0
push ecx
push 0x2c
push edx
mov byte [esp + 0x7c], 9
call fcn.0040dfc0
mov eax, dword [esp + 0x4c]
add esp, 0x10
xor edi, edi
mov ebp, eax
test eax, eax
jle 0x416ce1
mov bl, 0xc
mov eax, dword [0x4e641c]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x1c]
push edi
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 0xa
call fcn.0040d7a0
mov eax, dword [esp + 0x54]
mov byte [esp + 0x6c], 0xb
test eax, eax
je 0x416c3b
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x50]
call fcn.004912bd
test eax, eax
jne 0x416d90
mov ecx, dword [0x4e641c]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push str.market
push str._s__s
push eax
mov byte [esp + 0x7c], bl
call fcn.0048ea3f
mov eax, dword [esp + 0x30]
mov edx, dword [esi]
add esp, 0x10
lea ecx, [esp + 0x30]
push 0x4eb07c
push eax
push str.system
push ecx
mov ecx, esi
call dword [edx + 0x9c]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 0xd
call fcn.00491b05
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], bl
call fcn.004919cc
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x416da0
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 0xb
call fcn.004919cc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 0xa
call fcn.004919cc
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 9
call fcn.004919cc
inc edi
cmp edi, ebp
jl 0x416bf6
mov edx, dword [0x4e641c]
mov dword [esp + 0x10], edx
push 0xf010
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 0xe
call fcn.00496627
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00491741
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call fcn.00416750
mov eax, dword [esp + 0x3c]
xor edi, edi
test eax, eax
mov ebp, eax
jle 0x416dfe
mov bl, 0xf
mov edx, dword [0x4e641c]
mov dword [esp + 0x20], edx
lea eax, [esp + 0x1c]
push edi
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], bl
call fcn.0040d7a0
mov eax, dword [esp + 0x54]
mov byte [esp + 0x6c], 0x10
test eax, eax
je 0x416d6e
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.004912bd
test eax, eax
jne 0x416dd5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], bl
call fcn.004919cc
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 0xe
call fcn.004919cc
inc edi
cmp edi, ebp
jl 0x416d2d
jmp 0x416dfe
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.00491b05
jmp 0x416dbc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00491b05
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 0xb
call fcn.004919cc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 0xa
call fcn.004919cc
mov byte [esp + 0x6c], 9
lea ecx, [esp + 0x10]
jmp 0x416e07
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
call fcn.00491b05
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], bl
call fcn.004919cc
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 0xe
call fcn.004919cc
mov byte [esp + 0x6c], 9
lea ecx, [esp + 0x10]
call fcn.004919cc
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 6
call fcn.00490991
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x74]
push ecx
push edx
add esi, 0x164
push str._s_s
push esi
call fcn.0048ea3f
add esp, 0x10
lea ecx, [esp + 0x48]
mov byte [esp + 0x6c], 4
call fcn.00491229
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 3
call fcn.004919cc
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 2
call fcn.004919cc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 1
call fcn.004919cc
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 0
call fcn.004919cc
lea ecx, [esp + 0x18]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004919cc
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 4