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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51f1a7
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x597f54]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
lea ecx, [esp + 0x60]
mov dword [esp + 0x58], esi
call fcn.00449640
xor eax, eax
push ebx
lea ecx, [esp + 0x64]
mov dword [esp + 0x1dc], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
call fcn.004499f0
test eax, eax
je 0x422f85
push 0
push ebx
lea ecx, [esp + 0x68]
call fcn.00449a20
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x38]
mov dword [esp + 0x5c], eax
push 4
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call edx
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x422ff6
cmp dword [esp + 0x28], 0
je 0x422fb8
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x64]
call fcn.00449660
lea ecx, [esp + 0x60]
mov dword [esp + 0x1d8], 0xffffffff
call fcn.00449a10
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.004e2867
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4234e6
mov ecx, dword [eax]
mov edi, dword [eax + 8]
push 0x50
lea edx, [esp + 0xb0]
push 0
push edx
mov dword [esp + 0x4c], ecx
call fcn.004e3e60
push 0xc8
lea eax, [esp + 0x10c]
push 0
push eax
call fcn.004e3e60
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
add esp, 0x18
cmp ecx, 0x4f
jb 0x42303e
mov ecx, 0x4f
push ecx
push eax
lea ecx, [esp + 0xb4]
push ecx
call fcn.004e7850
mov eax, dword [edi + 4]
add esp, 0xc
push 1
push eax
lea ecx, [esp + 0x8c]
call fcn.00402d1c
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + ecx + 0x88]
mov byte [esp + 0x1dc], 1
call fcn.00485130
mov eax, dword [eax]
sub eax, 0x10
push eax
mov byte [esp + 0x1dc], 2
call fcn.004021f1
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x1d8], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4230ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx - 0xc]
cmp eax, 0xc7
jb 0x4230d9
mov eax, 0xc7
push eax
lea ecx, [esp + 0x100]
push ebx
push ecx
call fcn.004e7850
mov edx, dword [esi]
mov edx, dword [edx + 0x38]
add esp, 0xc
push 0x50
lea eax, [esp + 0xb0]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push 0xc8
lea ecx, [esp + 0x100]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push 4
lea ecx, [edi + 8]
push ecx
mov ecx, esi
call edx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 0xc]
mov dword [esp + 0x4c], eax
xor edx, edx
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
cmp dword [edi + 0xc], eax
mov byte [esp + 0x1d8], 5
mov dword [esp + 0x48], eax
jbe 0x423388
mov dword [esp + 0x2c], eax
test ebx, ebx
jle 0x4231e0
mov ecx, dword [edi + 0x10]
mov esi, dword [esp + 0x2c]
mov esi, dword [ecx + esi]
add esi, dword [esp + 0x14]
shr esi, 1
test ebx, ebx
mov dword [esp + 0x3c], esi
jle 0x4231de
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x20]
test edx, edx
je 0x4231a6
mov ecx, ebx
sub ecx, edx
sub eax, edx
sar ecx, 2
sar eax, 2
cmp ecx, eax
jae 0x4231a6
mov dword [ebx], esi
add ebx, 4
mov dword [esp + 0x20], ebx
jmp 0x4231cf
cmp edx, ebx
jbe 0x4231af
call fcn.004e2d91
lea edx, [esp + 0x3c]
push edx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x28]
call fcn.00422e70
mov ebx, dword [esp + 0x20]
sub dword [esp + 0x44], 1
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
jne 0x423187
xor ebx, ebx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4232f4
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x423205
mov eax, dword [edi + 0x10]
mov esi, dword [esp + 0x2c]
movzx eax, word [eax + esi + 8]
jmp 0x4232d5
movzx ecx, word [esi + 0xc]
mov esi, dword [esp + 0x2c]
movzx ecx, cx
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0x10]
add ecx, esi
movzx esi, word [esp + 0x3c]
cmp dword [ecx + 8], esi
jne 0x42324d
mov esi, dword [esp + 0x34]
mov ecx, dword [ecx + 0x10]
add esi, 1
cmp ecx, esi
jle 0x4232f4
sub ecx, dword [esp + 0x34]
xor ebx, ebx
lea esi, [ecx - 1]
test esi, esi
setle bl
sub ebx, 1
and ebx, esi
jmp 0x4232f4
mov edx, dword [esp + 0x30]
movzx eax, word [edx + 0xc]
mov ecx, dword [esp + 0x28]
movzx eax, ax
movzx esi, ax
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 0x10]
call edx
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
add eax, 0xffffffff
xor ebx, ebx
test eax, eax
setle bl
add esi, 1
sub ebx, 1
and ebx, eax
mov eax, dword [edi + 0x10]
cmp esi, dword [eax + ecx + 8]
jae 0x4232c1
mov edi, edi
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push esi
call eax
movzx ecx, word [eax + 0x18]
movsx ecx, cx
add ebx, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [edi + 0x10]
mov edx, dword [esp + 0x2c]
add esi, 1
cmp esi, dword [ecx + edx + 8]
jb 0x423290
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + 0x10]
add eax, ecx
add ebx, dword [eax + 0x10]
mov ecx, dword [esp + 0x28]
movzx eax, word [eax + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
call edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
movzx eax, word [eax + 0x18]
movsx eax, ax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
test edx, edx
mov ecx, dword [edi + 0x10]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi + ecx]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
je 0x42332b
mov ecx, esi
sub ecx, edx
sub eax, edx
sar ecx, 2
sar eax, 2
cmp ecx, eax
jae 0x42332b
mov edx, dword [esp + 0x14]
mov eax, esi
lea ecx, [eax + 4]
mov dword [esi], edx
mov dword [esp + 0x20], ecx
jmp 0x423352
cmp edx, esi
jbe 0x423334
call fcn.004e2d91
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push esi
push eax
lea edx, [esp + 0x80]
push edx
mov ecx, eax
call fcn.00422e70
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + edx + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
add eax, 1
add edx, 0x14
cmp eax, dword [edi + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
jb 0x423163
mov esi, dword [esp + 0x58]
add dword [esp + 0x14], 0x2710
test edx, edx
je 0x4233b3
mov edi, ecx
sub edi, edx
sub eax, edx
sar edi, 2
sar eax, 2
cmp edi, eax
jae 0x4233b3
mov edx, dword [esp + 0x14]
lea eax, [ecx + 4]
mov dword [ecx], edx
mov dword [esp + 0x20], eax
jmp 0x4233d9
cmp edx, ecx
mov edi, ecx
jbe 0x4233be
call fcn.004e2d91
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edi
push eax
lea edx, [esp + 0x78]
push edx
mov ecx, eax
call fcn.00422e70
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4233e5
xor eax, eax
jmp 0x4233ea
sub eax, ecx
sar eax, 2
add eax, 0xffffffff
mov dword [esp + 0x4c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push 4
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call edx
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp edi, eax
jbe 0x423416
call fcn.004e2d91
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x1c], eax
mov ebx, eax
jbe 0x423427
call fcn.004e2d91
mov eax, dword [esp + 0x20]
cmp edi, ebx
je 0x423460
cmp edi, eax
jb 0x423434
call fcn.004e2d91
mov eax, dword [edi]
mov edx, dword [esi]
mov edx, dword [edx + 0x38]
mov dword [esp + 0x14], eax
push 4
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x20]
cmp edi, eax
jb 0x42345b
call fcn.004e2d91
mov eax, dword [esp + 0x20]
add edi, 4
jmp 0x423416
mov ecx, dword [esp + 0x28]
xor edi, edi
cmp ecx, edi
je 0x42347e
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x42347e
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x10]
call eax
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x42348f
push eax
call fcn.004b1a59
add esp, 4
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov byte [esp + 0x1d8], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4234c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x1d8], 0
call fcn.0040290f
cmp dword [esp + 0x40], edi
jne 0x422ff2
jmp 0x422fa3
call fcn.004b3efb
int3