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

Disassembly:
sub esp, 0x60
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esi + 0x23c]
push edi
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x234]
mov ebx, dword [eax + 4]
mov dword [esi + 0x238], ebx
cmp ebx, eax
je 0x429875
test ebx, ebx
je 0x429875
jmp 0x4290e0
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
lea esi, [eax - 1]
inc eax
lea edi, [ecx - 1]
inc ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
test esi, esi
jge 0x429104
xor esi, esi
mov dword [esp + 0x38], esi
mov ebp, dword [esp + 0x18]
mov edx, dword [ebp + 0x2c]
cmp eax, edx
jl 0x429116
lea eax, [edx - 1]
mov dword [esp + 0x3c], eax
test edi, edi
jge 0x42911c
xor edi, edi
mov edx, dword [ebp + 0x30]
cmp ecx, edx
jl 0x42912a
lea ecx, [edx - 1]
mov dword [esp + 0x34], ecx
cmp edi, ecx
mov dword [esp + 0x1c], edi
jg 0x42969b
jmp 0x429140
cmp esi, eax
mov dword [esp + 0x20], esi
jg 0x42968e
mov eax, dword [ebp + 0x34]
imul esi, esi, 0x124
mov ecx, dword [eax + edi*4]
lea edx, [ecx + esi + 8]
push edx
mov dword [esp + 0x44], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x34]
mov eax, dword [eax + edi*4]
mov edx, dword [eax + esi]
mov ecx, dword [edx + 0xc]
add eax, esi
test ecx, ecx
je 0x42917e
lea ebp, [ecx - 8]
jmp 0x429180
xor ebp, ebp
mov dword [eax + 4], ebp
cmp ebp, edx
je 0x429361
test ebp, ebp
je 0x429361
mov eax, 1
cmp dword [ebp + 0x1444], eax
je 0x42932c
mov ecx, dword [ebp + 0xe0]
mov edx, dword [ecx + 0x28]
cmp dword [edx + 0x7c], eax
jge 0x42932c
mov al, byte [ebx + 0x34]
cmp al, byte [ebp + 0x12d]
je 0x42932c
cmp byte [ebp + 0x5815], 0
je 0x42932c
cmp byte [ebp + 0x5814], 0
je 0x42932c
fld dword [ebp + 0xd0]
push ecx
fsub dword [ebx + 8]
fstp dword [esp + 0x18]
fld dword [ebp + 0xd8]
fsub dword [ebx + 0x10]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fld dword [esp + 0x18]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0041b8a0
mov ecx, dword [ebx + 0x3c]
movzx edx, byte [ecx + 0x57]
mov dword [esp + 0x18], edx
add esp, 4
fild dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 1
jne 0x42932c
mov ecx, ebp
call fcn.00499980
mov eax, dword [ebp + 0x17c]
mov ecx, dword [ebp + 0x180]
mov edx, dword [ebp + 0x178]
mov edi, dword [ebx + 0x3c]
push eax
mov eax, dword [ebp + 0x1238]
push ecx
mov ecx, dword [ebp + 0x123c]
push edx
mov edx, dword [ebp + 0x1234]
push eax
push ecx
push edx
lea esi, [esp + 0x40]
call fcn.00428ed0
mov ecx, dword [ebx + 0x30]
add esp, 0x18
mov eax, esi
push eax
push ecx
push 1
mov edi, ebp
call fcn.004581f0
test al, al
je 0x42929c
mov edx, dword [ebx + 0x30]
push 0
push edx
push 1
mov ecx, ebp
call fcn.004654c0
mov byte [esp + 0x5a], 0
mov eax, 0x513
mov word [esp + 0x58], ax
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0x5b], ecx
mov edx, dword [ebp + 0xdc]
mov dword [esp + 0x5f], edx
mov eax, dword [ebx + 0x3c]
movzx ecx, word [eax]
mov word [esp + 0x63], cx
mov edx, dword [ebx + 0x3c]
mov al, byte [edx + 2]
movzx ecx, word [esp + 0x28]
mov dx, word [esp + 0x2c]
mov byte [esp + 0x65], al
mov ax, word [esp + 0x30]
mov word [esp + 0x66], cx
lea ecx, [ebx + 8]
mov word [esp + 0x68], dx
mov word [esp + 0x6a], ax
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x42931e
mov edx, dword [ebp + 0xdc]
fld dword [0x574168]
push 6
push edx
mov edx, dword [ebx + 0x30]
push edx
push ecx
fstp dword [esp]
push ecx
push 0x14
lea ecx, [esp + 0x70]
push ecx
push eax
call fcn.00427cf0
mov edx, dword [ebx + 0x3c]
cmp word [edx + 0x32], 0x65
je 0x429716
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x34]
mov edi, dword [esp + 0x1c]
mov eax, dword [ecx + edi*4]
mov esi, dword [esp + 0x40]
mov edx, dword [eax + esi + 4]
mov ecx, dword [edx + 0xc]
add eax, esi
test ecx, ecx
je 0x429350
lea ebp, [ecx - 8]
jmp 0x429352
xor ebp, ebp
mov dword [eax + 4], ebp
cmp ebp, dword [eax]
je 0x429361
test ebp, ebp
jne 0x429193
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax + edi*4]
lea edx, [ecx + esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax + edi*4]
lea edx, [ecx + esi + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx + esi + 0x2c]
mov eax, dword [edx + 0x78]
lea ecx, [ecx + esi + 0x2c]
test eax, eax
je 0x4293a1
lea ebp, [eax - 0x74]
jmp 0x4293a3
xor ebp, ebp
mov dword [ecx + 4], ebp
cmp ebp, edx
je 0x42965c
test ebp, ebp
je 0x42965c
jmp 0x4293c0
cmp dword [ebp + 0x31c], 0
jne 0x429625
mov eax, dword [ebx + 0x3c]
cmp word [eax + 0x32], 0x65
jne 0x429413
mov al, byte [eax + 0x4d]
test al, al
jne 0x429403
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x34]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx + esi + 0x30]
lea eax, [ecx + esi + 0x2c]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x42964b
lea ebp, [ecx - 0x74]
jmp 0x42964d
mov ecx, dword [ebp + 0xd4]
movzx eax, al
cmp byte [ecx + eax + 0x45], 0
jne 0x4293de
cmp dword [ebp + 0x70], 0
movzx eax, byte [ebx + 0x34]
mov dword [esp + 0x14], eax
je 0x429495
cmp dword [ebp + 0x6c], 0
jne 0x42942b
xor eax, eax
jmp 0x42949b
mov eax, dword [ebp + 0x68]
mov esi, dword [ebp + 0x6c]
add esi, eax
cmp eax, esi
jbe 0x42943c
call fcn.0051b1ad
mov edi, dword [ebp + 0x50]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
test edi, edi
jne 0x429467
call fcn.0051b1ad
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
dec esi
cmp esi, ecx
ja 0x429474
test edi, edi
je 0x42946d
mov edi, dword [edi]
jmp 0x42946f
mov eax, dword [edi]
mov ecx, eax
jmp 0x429454
xor edi, edi
cmp esi, dword [edi + 0x18]
jae 0x429479
call fcn.0051b1ad
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x50]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], esi
call fcn.00425b90
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
jmp 0x42949b
mov eax, dword [ebp + 0x1a8]
cmp eax, 2
je 0x429625
mov ecx, dword [ebp + 0xd4]
mov eax, dword [ecx + 0x78]
cmp eax, 2
je 0x4294bc
cmp eax, dword [esp + 0x14]
je 0x429625
fld dword [ebp + 0x7c]
mov edi, dword [ebx + 0x3c]
fsub dword [ebx + 8]
push ecx
fstp dword [esp + 0x28]
fld dword [ebp + 0x84]
fsub dword [ebx + 0x10]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld dword [esp + 0x28]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0041b8a0
movzx edx, byte [edi + 0x57]
mov dword [esp + 0x18], edx
add esp, 4
fild dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 1
jne 0x429625
mov eax, dword [ebp + 0xd4]
movzx ecx, word [eax + 0x36]
movzx edx, word [eax + 0x34]
mov eax, dword [eax + 0x30]
push ecx
movzx ecx, word [ebp + 0x2ae]
push edx
movzx edx, word [ebp + 0x2ac]
push eax
mov eax, dword [ebp + 0x2a8]
push ecx
push edx
push eax
lea esi, [esp + 0x40]
call fcn.00428ed0
movzx ecx, word [edi + 0x64]
mov edx, dword [ebx + 0x30]
add esp, 0x18
push 0
push ecx
push 0
push edx
push 1
push ebp
mov eax, esi
call fcn.004a1980
test al, al
je 0x429574
mov eax, dword [ebx + 0x30]
push eax
push 1
mov ecx, ebp
call fcn.004a1c20
jmp 0x42959a
mov ecx, dword [ebx + 0x30]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
add esi, 0x64
mov dword [esp + 0x18], ecx
call fcn.00415480
test eax, eax
je 0x42959a
push 1
push eax
mov ecx, ebp
call fcn.004b4010
mov byte [esp + 0x5a], 0
mov eax, 0x519
mov word [esp + 0x58], ax
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0x5b], ecx
mov edx, dword [ebp + 0x88]
mov dword [esp + 0x5f], edx
mov eax, dword [ebx + 0x3c]
movzx ecx, word [eax]
mov word [esp + 0x63], cx
mov edx, dword [ebx + 0x3c]
mov al, byte [edx + 2]
movzx ecx, word [esp + 0x28]
mov dx, word [esp + 0x2c]
mov byte [esp + 0x65], al
mov ax, word [esp + 0x30]
mov word [esp + 0x66], cx
lea ecx, [ebx + 8]
mov word [esp + 0x68], dx
mov word [esp + 0x6a], ax
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x429617
mov edx, dword [ebx + 0x30]
fld dword [0x574168]
push 6
push edx
push 0
push ecx
fstp dword [esp]
push ecx
push 0x14
lea ecx, [esp + 0x70]
push ecx
push eax
call fcn.00427cf0
mov edx, dword [ebx + 0x3c]
cmp word [edx + 0x32], 0x65
je 0x4297ae
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x34]
mov edi, dword [esp + 0x1c]
mov edx, dword [ecx + edi*4]
mov esi, dword [esp + 0x40]
mov ecx, dword [edx + esi + 0x30]
mov ecx, dword [ecx + 0x78]
lea eax, [edx + esi + 0x2c]
test ecx, ecx
je 0x42964b
lea ebp, [ecx - 0x74]
jmp 0x42964d
xor ebp, ebp
cmp ebp, dword [eax]
mov dword [eax + 4], ebp
je 0x42965c
test ebp, ebp
jne 0x4293c0
mov ebp, dword [esp + 0x18]
mov edx, dword [ebp + 0x34]
mov eax, dword [edx + edi*4]
lea ecx, [eax + esi + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
mov dword [esp + 0x20], esi
jle 0x42914c
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
inc edi
cmp edi, ecx
mov dword [esp + 0x1c], edi
jle 0x429140
mov ecx, dword [esp + 0x74]
cmp dword [ebx + 0x38], ecx
jae 0x429852
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x238]
cmp dword [esi + 0x234], eax
je 0x4296ec
mov edx, dword [eax]
mov dword [esi + 0x238], edx
mov ecx, dword [eax]
test ecx, ecx
je 0x4296e6
mov edx, dword [eax + 4]
test edx, edx
je 0x4296e6
mov dword [ecx + 4], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov dword [eax + 4], 0
mov dword [eax], 0
dec dword [esi + 0x254]
mov esi, dword [0x587964]
add esi, 0xcc
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
test eax, eax
jne 0x429843
mov dword [esi], ebx
mov dword [ebx + 4], eax
jmp 0x429848
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0x238]
cmp dword [ebp + 0x234], eax
je 0x42975a
mov edx, dword [eax]
mov dword [ebp + 0x238], edx
mov ecx, dword [eax]
test ecx, ecx
je 0x429754
mov edx, dword [eax + 4]
test edx, edx
je 0x429754
mov dword [ecx + 4], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov dword [eax + 4], 0
mov dword [eax], 0
dec dword [ebp + 0x254]
mov esi, dword [0x587964]
add esi, 0xcc
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
test eax, eax
jne 0x42977d
mov dword [esi], ebx
mov dword [ebx + 4], eax
jmp 0x429782
mov dword [ebx + 4], eax
mov dword [esi], ebx
inc dword [esi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call esi
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x34]
imul eax, eax, 0x124
mov edx, dword [esp + 0x1c]
mov ecx, dword [ecx + edx*4]
lea edx, [ecx + eax + 8]
push edx
call esi
jmp 0x429852
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0x238]
cmp dword [ebp + 0x234], eax
je 0x4297f2
mov ecx, dword [eax]
mov dword [ebp + 0x238], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x4297ec
mov edx, dword [eax + 4]
test edx, edx
je 0x4297ec
mov dword [ecx + 4], edx
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov dword [eax + 4], 0
mov dword [eax], 0
dec dword [ebp + 0x254]
mov esi, dword [0x587964]
add esi, 0xcc
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
test eax, eax
jne 0x429815
mov dword [esi], ebx
mov dword [ebx + 4], eax
jmp 0x42981a
mov dword [ebx + 4], eax
mov dword [esi], ebx
inc dword [esi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call esi
mov eax, dword [esp + 0x20]
mov edx, dword [ebp + 0x34]
imul eax, eax, 0x124
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + ecx*4]
lea eax, [edx + eax + 0x34]
push eax
call esi
jmp 0x429852
mov dword [ebx + 4], eax
mov dword [esi], ebx
inc dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x238]
mov ebx, dword [ecx + 4]
mov dword [eax + 0x238], ebx
cmp ebx, dword [eax + 0x234]
je 0x429875
test ebx, ebx
jne 0x4290e0
mov edx, dword [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051a8be
add esp, 0x60
ret 4