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

Disassembly:
push 0xffffffffffffffff
push 0x66769a
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [0x70d218], esi
xor ebx, ebx
lea ecx, [esi + 0x50]
mov dword [esp + 0x88], ebx
mov dword [esi], vtable.UI::CWindowManager.0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
call fcn.00597350
lea ecx, [esi + 0x70]
mov byte [esp + 0x88], 1
mov dword [esi + 0x6c], ebx
call fcn.00597350
lea eax, [esp + 0x17]
push eax
lea edx, [esp + 0x1b]
lea ecx, [esi + 0x9c]
push edx
mov byte [esp + 0x90], 2
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
call fcn.005a9ba0
lea ecx, [esi + 0xbc]
mov byte [esp + 0x88], 3
call fcn.00597350
lea ecx, [esi + 0xd8]
mov byte [esp + 0x88], 4
call fcn.00597350
lea ecx, [esi + 0xf8]
mov byte [esp + 0x88], 5
call fcn.00597350
lea eax, [esp + 0x17]
push eax
lea edx, [esp + 0x1b]
lea ecx, [esi + 0x114]
push edx
mov byte [esp + 0x90], 6
call fcn.005191f0
push 0xa4
mov byte [esp + 0x8c], 7
call fcn.00610463
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x88], 8
cmp eax, ebx
je 0x599135
push ebx
mov ecx, eax
call fcn.005a4550
jmp 0x599137
xor eax, eax
push str.root
mov ecx, eax
mov byte [esp + 0x8c], 7
mov dword [esi + 0xf4], eax
call fcn.005a4d10
mov ecx, dword [esi + 0xf4]
call fcn.005a1f20
mov dword [esp + 0x30], str.GAME
mov dword [esp + 0x34], str.UI_BOTTOM
mov dword [esp + 0x38], 0x68d998
mov dword [esp + 0x3c], str.TOP_MOST
mov dword [esp + 0x40], str.CURTAIN
mov dword [esp + 0x18], ebx
push 0xa4
call fcn.00610463
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
mov byte [esp + 0x88], 9
cmp edi, ebx
je 0x5991b7
push ebx
mov ecx, edi
call fcn.005a4550
mov dword [edi], vtable.UI::CLayer.0
jmp 0x5991b9
xor edi, edi
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + eax*4 + 0x30]
push ebp
mov ecx, edi
mov byte [esp + 0x8c], 7
mov dword [esp + 0x20], edi
call fcn.005a4d10
mov ecx, edi
call fcn.005a1f20
mov eax, ebp
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x5991f1
sub eax, ecx
push eax
push ebp
lea ecx, [esp + 0x4c]
call fcn.00416f50
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x4c]
push ecx
mov ebp, 0xf
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 0xa
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
call fcn.00417450
mov dword [esp + 0x7c], edi
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 0x114]
mov byte [esp + 0x90], 0xb
call fcn.0057abd0
cmp dword [esp + 0x78], 0x10
jb 0x59926a
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00610458
add esp, 4
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov byte [esp + 0x88], 7
jb 0x599292
mov edx, dword [esp + 0x48]
push edx
call fcn.00610458
add esp, 4
mov ecx, dword [esi + 0xf4]
push edi
call fcn.005a5520
mov edi, dword [esi + 0x10c]
mov edx, dword [edi + 4]
lea ecx, [esi + 0xf8]
lea eax, [esp + 0x1c]
push eax
push edx
push edi
call fcn.005d1de0
push 1
lea ecx, [esi + 0xf8]
mov ebp, eax
call fcn.005c0860
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 5
jb 0x599188
mov ecx, dword [esi + 0x64]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 0x64]
mov dword [ecx + 4], ecx
mov dword [esi + 0x68], ebx
cmp eax, dword [esi + 0x64]
je 0x599309
mov edi, dword [eax]
push eax
call fcn.00610458
add esp, 4
mov eax, edi
cmp edi, dword [esi + 0x64]
jne 0x5992f7
mov ecx, dword [esi + 0x84]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 0x84]
mov dword [ecx + 4], ecx
mov dword [esi + 0x88], ebx
cmp eax, dword [esi + 0x84]
je 0x599345
lea ebx, [ebx]
mov edi, dword [eax]
push eax
call fcn.00610458
add esp, 4
mov eax, edi
cmp edi, dword [esi + 0x84]
jne 0x599330
push 0x68d9c4
call dword [sym.imp.python22.dll_Py_BuildValue]
mov dword [0x74f818], eax
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret