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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50d744
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [0x55b9cc]
mov edx, dword [eax + 0xc78]
push ebx
mov ebx, ecx
mov ecx, dword [eax + 0xc7c]
push ebp
push esi
mov dword [esp + 0x30], ecx
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edx
call fcn.004fcb68
mov eax, dword [ebx + 0xf0]
mov ebp, dword [eax - 0xc]
mov edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea esi, [ebx + 0xf0]
lea edi, [ebp + 1]
mov ecx, 1
sub ecx, edx
sub eax, edi
or eax, ecx
mov dword [esp + 0x6c], 0
jge 0x422eff
push edi
mov ecx, esi
call fcn.004019f0
mov eax, dword [esi]
mov byte [eax + ebp], 0x7c
mov eax, dword [esi]
mov dword [eax - 0xc], edi
mov ecx, dword [esi]
mov byte [edi + ecx], 0
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x42300c
push 0x7c
push eax
call fcn.004ede25
add esp, 8
test eax, eax
je 0x42300c
sub eax, dword [esi]
mov edi, eax
js 0x42300c
push edi
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.0041f7e0
push eax
mov eax, dword [esp + 0x58]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x74], 1
call fcn.004fcd0c
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422f7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc edi
push edi
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00422d70
mov eax, dword [eax]
mov edi, dword [esi]
lea ecx, [eax - 0x10]
sub edi, 0x10
cmp ecx, edi
mov byte [esp + 0x6c], 2
je 0x422fe0
mov edx, dword [edi + 0xc]
test edx, edx
lea ebp, [edi + 0xc]
jge 0x422fb7
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00401ee0
jmp 0x422fe0
push ecx
call fcn.00401a40
add esp, 4
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x422fd7
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
add ebx, 0x10
mov dword [esi], ebx
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422f10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x422f10
mov eax, dword [esp + 0x1c]
fild dword [eax + 0x80]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0x43400000
fmul qword [0x51fc88]
call fcn.004ed8c0
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0xec]
push 0x5245f0
push eax
call fcn.004edc73
add esp, 8
test eax, eax
je 0x4230d2
mov eax, dword [ebx + 0xec]
push 0
push ecx
sub eax, 0x10
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.00401a40
mov edi, dword [esp + 0x40]
add esp, 4
lea ecx, [esp + 0x34]
add eax, 0x10
push ecx
mov ecx, edi
mov dword [esi], eax
call fcn.0044ffa0
fild dword [eax]
fcomp dword [0x524c84]
fnstsw ax
test ah, 5
jnp 0x4230c2
mov eax, dword [ebx + 0xec]
push 0
push ecx
sub eax, 0x10
mov dword [esp + 0x3c], esp
mov esi, esp
push eax
call fcn.00401a40
add esp, 4
lea edx, [esp + 0x1c]
add eax, 0x10
push edx
mov ecx, edi
mov dword [esi], eax
call fcn.0044ffa0
fild dword [eax]
fstp dword [esp + 0x20]
fild dword [edi + 0x80]
fmul qword [0x51f950]
fstp dword [esp + 0x14]
mov eax, dword [esp + 0x54]
xor edi, edi
test eax, eax
mov dword [esp + 0x2c], edi
jle 0x423218
mov eax, dword [esp + 0x50]
mov esi, dword [eax + edi*4]
push 0
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
sub esi, 0x10
mov dword [esp + 0x3c], esp
mov ebp, esp
call dword [edx + 0x10]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea edx, [esi + 0xc]
jl 0x42311a
cmp eax, dword [esi]
jne 0x42311a
mov eax, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x423150
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x423660
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
add eax, 0x10
mov dword [ebp], eax
lea eax, [esp + 0x40]
push eax
call fcn.0044ffa0
fild dword [eax]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jnp 0x4231fb
push 0
push ecx
mov ecx, dword [esp + 0x58]
mov esi, dword [ecx + edi*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
sub esi, 0x10
mov dword [esp + 0x3c], esp
mov ebp, esp
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x4231ab
cmp eax, dword [esi]
jne 0x4231ab
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4231e1
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x423660
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
add eax, 0x10
mov dword [ebp], eax
lea eax, [esp + 0x48]
push eax
call fcn.0044ffa0
fild dword [eax]
fstp dword [esp + 0x20]
fild dword [esp + 0x28]
mov eax, dword [esp + 0x54]
inc edi
cmp edi, eax
fadd dword [esp + 0x14]
mov dword [esp + 0x2c], edi
fstp dword [esp + 0x14]
jl 0x4230e4
mov al, byte [ebx + 0xf4]
test al, al
je 0x42323f
mov ecx, dword [esp + 0x28]
lea edx, [ecx + ecx]
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
fadd dword [esp + 0x14]
fadd dword [0x523958]
fstp dword [esp + 0x14]
fld dword [esp + 0x20]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
je 0x423256
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
fld dword [esp + 0x14]
push 0x1d8
fmul dword [0x51f8dc]
fstp dword [esp + 0x20]
call fcn.004fd765
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
test esi, esi
mov byte [esp + 0x6c], 3
je 0x4232d5
fld dword [esp + 0x14]
push 1
fadd dword [0x51f8e4]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x3c], esp
fstp dword [esp + 8]
fld dword [esp + 0x30]
fadd dword [0x51f8e4]
fstp dword [esp + 4]
push 0x5245f0
call fcn.00402110
lea ecx, [ebx + 0xe0]
mov eax, dword [ecx]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov ecx, esi
call fcn.00479570
jmp 0x4232d7
xor eax, eax
push eax
mov ecx, ebx
mov byte [esp + 0x70], 0
call fcn.00403010
mov eax, dword [ebx + 0xec]
push 0x5245f0
push eax
call fcn.004edc73
add esp, 8
test eax, eax
je 0x4233c3
push 0x210
call fcn.004fd765
mov edi, eax
add esp, 4
mov dword [esp + 0x34], edi
test edi, edi
mov byte [esp + 0x6c], 4
je 0x42338c
mov edx, dword [0x55b9cc]
mov eax, dword [edx + 0xc7c]
push 0xffffffffffffffff
push eax
mov eax, dword [ebx + 0xec]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.00401a40
add eax, 0x10
mov dword [esi], eax
fld dword [ebx + 0xe8]
mov ecx, dword [ebx + 0xe0]
fld dword [esp + 0x2c]
fadd dword [ebx + 0xe4]
sub esp, 8
mov edx, ecx
mov eax, esp
fstp dword [esp + 0x5c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax], edx
fstp dword [esp + 0x60]
mov edx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov ecx, edi
mov dword [esp + 0x44], esp
mov dword [eax + 8], edx
call fcn.00495860
jmp 0x42338e
xor eax, eax
push eax
mov ecx, ebx
mov byte [esp + 0x70], 0
mov byte [eax + 0x1d1], 0
call fcn.00403010
fld dword [esp + 0x1c]
mov eax, dword [0x55b9cc]
mov ecx, dword [eax + 0xc7c]
fild dword [ecx + 0x80]
fmul qword [0x51f950]
fsubp st(1)
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x2c], ebp
jle 0x42358c
mov edx, dword [esp + 0x50]
mov esi, dword [edx + ebp*4]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
sub esi, 0x10
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x423402
cmp eax, dword [esi]
jne 0x423402
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x423434
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x423660
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
mov dword [esp + 0x34], eax
push 0x210
mov byte [esp + 0x70], 5
call fcn.004fd765
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
test ebx, ebx
mov byte [esp + 0x6c], 6
je 0x42352e
mov eax, dword [0x55b9cc]
mov ecx, dword [eax + 0xc78]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x2c]
mov esi, dword [edx + eax*4]
push 0xffffffffffffffff
push ecx
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
sub esi, 0x10
mov dword [esp + 0x20], esp
mov ebp, esp
call dword [edx + 0x10]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea edx, [esi + 0xc]
jl 0x4234a6
cmp eax, dword [esi]
jne 0x4234a6
mov eax, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4234d8
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x423660
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
add eax, 0x10
mov dword [ebp], eax
fld dword [esi + 0xe8]
mov eax, dword [esi + 0xe0]
fld dword [esp + 0x28]
fadd dword [esi + 0xe4]
sub esp, 0xc
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x58]
mov eax, esp
fstp dword [esp + 0x5c]
mov edx, dword [esp + 0x5c]
mov dword [eax], ecx
fstp dword [esp + 0x60]
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, ebx
mov dword [esp + 0x2c], esp
call fcn.00495860
mov ebp, dword [esp + 0x2c]
jmp 0x423534
mov esi, dword [esp + 0x24]
xor eax, eax
push eax
mov ecx, esi
mov byte [esp + 0x70], 5
mov byte [eax + 0x1d1], 0
call fcn.00403010
fild dword [esp + 0x28]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
fsubr dword [esp + 0x1c]
mov byte [esp + 0x6c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
fstp dword [esp + 0x1c]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423577
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x54]
inc ebp
cmp ebp, eax
mov dword [esp + 0x2c], ebp
jl 0x4233d5
mov ebx, dword [esp + 0x24]
mov al, byte [ebx + 0xf4]
test al, al
je 0x423692
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax]
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
push 0x3e8
fsubr dword [esp + 0x20]
fstp dword [esp + 0x20]
call fcn.004fd765
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
test esi, esi
mov byte [esp + 0x6c], 7
je 0x423665
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x5245f0
call fcn.00402110
mov edx, dword [0x55b9cc]
mov eax, dword [edx + 0xc68]
mov ecx, dword [eax + 0x644]
imul ecx, ecx, 0x644
mov eax, dword [ecx + eax + 0x14]
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x78], 8
call fcn.00402110
mov edx, dword [ebx + 0xe0]
fld dword [ebx + 0xe8]
sub esp, 0xc
fld dword [esp + 0x30]
mov eax, esp
fadd dword [ebx + 0xe4]
mov ecx, edx
mov dword [eax], ecx
mov dword [esp + 0x54], edx
fstp dword [esp + 0x58]
mov edx, dword [esp + 0x58]
mov dword [eax + 4], edx
fstp dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov ecx, esi
mov byte [esp + 0x80], 7
mov dword [esp + 0x40], esp
call fcn.00478970
mov esi, eax
jmp 0x423667
jmp fcn.00401670
xor esi, esi
push 0x80
mov ecx, esi
mov byte [esp + 0x70], 0
call fcn.00479f80
mov edx, dword [0x55b9cc]
mov al, byte [edx + 0x360]
push esi
mov ecx, ebx
mov byte [esi + 0x3d8], al
call fcn.00403010
lea ecx, [esp + 0x4c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004fcbba
mov ecx, dword [esp + 0x64]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret