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

Disassembly:
push 0xffffffffffffffff
push 0x5979a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push edi
mov edi, dword [esp + 0x9c]
mov eax, dword [edi]
mov ebx, ecx
mov ecx, edi
mov dword [esp + 0x20], ebx
call dword [eax + 0x48]
test eax, eax
jne 0x46c127
push ebp
mov ebp, dword [esp + 0x9c]
push esi
push ebp
mov ecx, ebx
call fcn.004e70b0
push 0
push ebp
mov ecx, ebx
call fcn.004e74d0
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x34]
mov edx, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x2c], eax
call dword [edx + 0xbc]
mov esi, eax
mov ecx, ebp
mov dword [esp + 0x1c], esi
call fcn.0044c150
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], eax
call fcn.00459e30
lea ecx, [esp + 0x50]
mov dword [esp + 0x98], 0
call fcn.00459e30
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
mov byte [esp + 0x9c], 1
call fcn.0044a990
test byte [ebp + 0x20], 1
je 0x46bd2c
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov dword [esp + 0x24], edx
jmp 0x46bd33
mov eax, dword [ebp + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
test eax, eax
mov ecx, dword [esp + 0x14]
jne 0x46bd8e
push ecx
call fcn.00404810
add esp, 4
test eax, eax
je 0x46bd59
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x3c]
test eax, eax
jne 0x46bd68
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3c]
test eax, eax
je 0x46bf03
mov ecx, dword [esp + 0x10]
push edi
push ecx
push 2
push 0x17d8
call fcn.0053f010
push 0x1b
push 0xc
push eax
push 0x1a
call fcn.004223f0
add esp, 0x20
jmp 0x46bf03
mov edx, dword [ecx]
call dword [edx + 0x3c]
test eax, eax
jne 0x46bda8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3c]
test eax, eax
jne 0x46bda8
mov dword [esp + 0x18], eax
jmp 0x46bdd1
push edi
push esi
push 2
push 0x17a6
mov dword [esp + 0x28], 1
call fcn.0053f010
push 1
push 0
push 0xa5
push eax
push esi
call fcn.00467da0
add esp, 0x24
mov eax, dword [esi + 0x84]
test eax, eax
je 0x46bde3
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46be1f
test byte [ebp + 0x20], 1
push edi
push esi
push 2
je 0x46be08
push 0x17af
call fcn.0053f010
push 0x1b
push 0xc
push eax
push 0x1a
call fcn.004223f0
add esp, 0x20
jmp 0x46be1f
push 0x17d6
call fcn.0053f010
push 0x1b
push 6
push eax
call fcn.00467d90
add esp, 0x1c
push esi
lea ecx, [esp + 0x54]
call fcn.00457d50
push esi
lea ecx, [esp + 0x34]
call fcn.00457c00
mov eax, dword [esp + 0x34]
test eax, eax
mov ecx, eax
je 0x46bf03
jmp 0x46be47
mov ecx, dword [esp + 0x20]
mov eax, ecx
mov esi, dword [eax + 8]
test esi, esi
mov ecx, dword [ecx]
mov dword [esp + 0x20], ecx
je 0x46be71
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
je 0x46be71
push 0x5b3d3c
mov ecx, esi
call fcn.00591e20
test eax, eax
jne 0x46be73
xor esi, esi
mov ecx, esi
call fcn.0043a590
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x84]
test ecx, ecx
je 0x46be90
push edi
mov ecx, esi
call fcn.0043b7d0
push 1
push 0xb
push eax
call dword [sym.imp.SanCalc.dll_int___cdecl_kakuritsu_int__enum_RANDOM_KIND__int_]
add esp, 0xc
test eax, eax
je 0x46bed1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46bec5
push edi
push esi
push 2
push 0x17d7
call fcn.0053f010
push 0x1b
push 6
push eax
call fcn.00467d90
add esp, 0x1c
push esi
lea ecx, [esp + 0x54]
call fcn.00457d50
jmp 0x46beef
mov eax, dword [ebx + 0x84]
test eax, eax
mov ecx, esi
jne 0x46bee8
push 1
push 0
call fcn.0043e4a0
jmp 0x46beef
push 0
call fcn.0043e770
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x46be43
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
push eax
call fcn.00404810
add esp, 4
test eax, eax
je 0x46bf48
test byte [ebp + 0x20], 1
je 0x46bf28
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0xb8]
jmp 0x46bf33
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0xb8]
push eax
push 1
push edi
push ebp
mov ecx, ebx
call fcn.004e6eb0
push 0
mov ecx, ebp
call fcn.0044fc70
test byte [ebp + 0x20], 1
je 0x46bf5c
mov ecx, dword [esp + 0x10]
push 1
push edi
call fcn.00424170
jmp 0x46bf68
push 0
push 1
push edi
mov ecx, ebp
call fcn.00452720
test byte [ebp + 0x20], 1
je 0x46bfad
lea ecx, [esp + 0x70]
call fcn.00455510
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x74]
mov byte [esp + 0x9c], 2
call fcn.00457d50
lea edx, [esp + 0x70]
push 1
push edx
call fcn.00444b40
add esp, 8
lea ecx, [esp + 0x70]
mov byte [esp + 0x98], 1
call fcn.00455530
mov ecx, edi
call fcn.0042dbd0
mov ebx, eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x46c02f
mov edi, edi
lea ecx, [esp + 0x50]
call fcn.004f4f90
mov esi, eax
test esi, esi
je 0x46bfea
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x46bfea
push 0x5b3d3c
mov ecx, esi
call fcn.00591e20
test eax, eax
jne 0x46bfec
xor esi, esi
push ebx
mov ecx, esi
call fcn.00439680
mov ecx, eax
mov eax, 0x32
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, 0x4b
push edi
push eax
mov ecx, esi
call fcn.0043a4a0
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0xf4]
push ecx
push 1
push eax
mov ecx, esi
call fcn.0043baf0
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x46bfc0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
push edi
call fcn.00404810
add esp, 4
test eax, eax
je 0x46c060
push 0
push 0
push 0
mov ecx, edi
call fcn.00430230
call fcn.0043ef30
push 1
mov ecx, ebp
call fcn.0044c210
call fcn.0043f280
mov edx, dword [esp + 0x24]
push 0
push 0
push edx
call fcn.0043f710
push esi
call fcn.00404810
add esp, 0x10
test eax, eax
je 0x46c085
push esi
lea ecx, [esp + 0x34]
call fcn.00457d00
mov esi, dword [esp + 0x34]
test esi, esi
je 0x46c0cc
lea ecx, [ecx]
mov eax, esi
mov edi, dword [eax + 8]
test edi, edi
mov esi, dword [esi]
je 0x46c0b6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
test eax, eax
je 0x46c0b6
push 0x5b3d3c
mov ecx, edi
call fcn.00591e20
test eax, eax
jne 0x46c0b8
xor edi, edi
mov eax, dword [edi + 4]
push 0
push 0
push eax
call fcn.0043f710
add esp, 0xc
test esi, esi
jne 0x46c090
test byte [ebp + 0x20], 1
je 0x46c100
mov ecx, ebp
call fcn.004479b0
mov esi, eax
push esi
call fcn.00404810
add esp, 4
test eax, eax
je 0x46c100
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x78]
mov esi, dword [esi + 4]
push 0x1c83
push esi
call fcn.004424e0
add esp, 8
lea ecx, [esp + 0x50]
mov byte [esp + 0x98], 0
call fcn.00459e50
lea ecx, [esp + 0x30]
mov dword [esp + 0x98], 0xffffffff
call fcn.00459e50
pop esi
pop ebp
mov ecx, dword [esp + 0x88]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 8