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

Disassembly:
push 0xffffffffffffffff
push 0x42fe1b
mov eax, dword fs:[0]
push eax
mov eax, 0x255c
call fcn.005bf1b3
mov eax, dword [0x43c3c0]
xor eax, esp
mov dword [esp + 0x2558], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c3c0]
xor eax, esp
push eax
lea eax, [esp + 0x2570]
mov dword fs:[0], eax
push 0x27
xor ebx, ebx
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.005b1623
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x20019
xor eax, eax
push ebx
push 0x436f58
push 0x80000002
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov byte [esp + 0x7c], al
mov dword [esp + 0x28], ebx
call dword [0x431044]
test eax, eax
jne 0x59ae3e
mov esi, dword [0x431048]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x436f6c
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0x27
call esi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push 0x436f74
push eax
mov dword [esp + 0x34], 0x11
call esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [fcn.00431040]
cmp byte [esp + 0x30], bl
jne 0x59af3c
xor eax, eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [0x4311f0]
test eax, eax
jne 0x59aea4
movzx eax, byte [esp + 0x2f]
movzx ecx, byte [esp + 0x2e]
push eax
mov eax, dword [esp + 0x30]
push ecx
movzx ecx, byte [esp + 0x33]
movzx edx, ah
push edx
movzx edx, byte [esp + 0x36]
movzx eax, al
push eax
push ecx
push edx
lea eax, [esp + 0x48]
push 0x436f7c
push eax
call fcn.005aec22
add esp, 0x20
jmp 0x59af3c
mov eax, 0x2a2a2a2a
push 0xff
lea ecx, [esp + 0x71]
push ebx
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov word [esp + 0x60], ax
mov byte [esp + 0x78], bl
call fcn.005b1623
add esp, 0xc
push 0x100
lea edx, [esp + 0x70]
push edx
call dword [0x431278]
test eax, eax
jne 0x59af3c
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x59af04
sub eax, edx
cmp eax, 0x26
jae 0x59af24
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x59af19
sub eax, edx
jmp 0x59af29
mov eax, 0x26
push eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.005b12b3
add esp, 0xc
lea eax, [esp + 0x30]
xor ecx, ecx
xor esi, esi
xor ebp, ebp
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x59af49
sub eax, edi
mov edi, eax
xor eax, eax
cmp edi, 2
jl 0x59af7a
lea edx, [edi - 1]
jmp 0x59af63
movzx ebx, byte [esp + eax + 0x30]
add ecx, ebx
movzx ebx, byte [esp + eax + 0x31]
add eax, 2
add esi, ebx
cmp eax, edx
jl 0x59af63
xor ebx, ebx
cmp eax, edi
jge 0x59af83
movzx ebp, byte [esp + eax + 0x30]
push 0x3ff
lea edx, [esp + 0x171]
add esi, ecx
push ebx
push edx
add ebp, esi
mov byte [esp + 0x178], bl
call fcn.005b1623
add esp, 0xc
call dword [0x431104]
push eax
push 0x436fb0
push ebp
push 1
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x184]
push 0x436fc0
push edx
call fcn.005aec22
lea edi, [esp + 0x18c]
add esp, 0x20
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x59afda
mov ecx, 0xb
mov esi, 0x43700c
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], 0x43894c
push 0x1f92
mov ecx, 0x43703c
mov dword [esp + 0x257c], ebx
call fcn.005a33d3
mov edi, eax
cmp edi, ebx
jne 0x59b036
call dword [0x431108]
push eax
push 0x1f92
push 0x43703c
push 0x43704c
call fcn.0059b993
add esp, 0x10
jmp 0x59b0b7
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x59b043
sub eax, edx
mov edx, dword [edi + 0x1b8]
mov edx, dword [edx + 0x1c]
lea esi, [edi + 0x1b8]
push eax
lea eax, [esp + 0x170]
push eax
mov ecx, esi
call edx
push 0x1fff
lea eax, [esp + 0x571]
push ebx
push eax
mov byte [esp + 0x578], bl
call fcn.005b1623
mov edx, dword [esi]
mov edx, dword [edx + 8]
add esp, 0xc
push 0x2000
lea eax, [esp + 0x570]
push eax
mov ecx, esi
call edx
cmp dword [edi + 0x1e0], 1
je 0x59b0ad
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov ecx, esi
call edx
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov ecx, dword [esp + 0x2570]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2558]
xor ecx, esp
call fcn.005ae7df
add esp, 0x2568
ret