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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push edi
mov dword [esi + 0x10], ebx
dec eax
je 0x422910
cmp ecx, 0xffffffff
je 0x422870
lea ecx, [esi + 0x18]
call fcn.0040d7b0
mov ecx, dword [ebp + 0x10]
test al, al
je 0x422870
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x14]
cmp eax, 0xfffffffe
je 0x422892
cmp eax, 0xffffffff
jne 0x4229d8
lea ecx, [esp + 0x60]
call fcn.004127a0
mov ecx, dword [esi + 4]
add ecx, 0x30
jmp 0x4228fa
mov edi, dword [esi + 4]
push ecx
lea ecx, [esp + 0x74]
lea edx, [edi + 0x78]
call fcn.00420f60
add esp, 4
lea ecx, [esp + 0x10]
push eax
call fcn.00420f30
mov eax, dword [esp + 0x10]
mov dword [edi + 0x80], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x84], eax
mov ecx, dword [esi + 4]
lea eax, [ecx + 0x80]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00421250
mov edx, dword [esi + 4]
mov ecx, dword [eax]
mov dword [edx + 0x80], ecx
lea ecx, [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [edx + 0x84], eax
call fcn.004127a0
mov ecx, dword [esi + 4]
add ecx, 8
push eax
call fcn.00417cf0
lea ecx, [esi + 0x18]
call fcn.0040d7b0
test al, al
je 0x422b6b
mov ecx, dword [esi + 0xc]
lea edi, [esi + 0x18]
test ecx, ecx
jne 0x42292c
call fcn.00569210
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi], 0
jmp 0x422942
lea eax, [esi + 0x20]
push eax
push edi
push ecx
push dword [esi + 8]
mov ecx, dword [esi + 4]
push 0x421520
call fcn.00421370
mov dword [esi + 0x14], eax
cmp eax, 0xfffffffe
jne 0x4229b8
mov edi, dword [esi + 4]
cmp dword [edi + 0x84], 0
je 0x422ac1
push dword [edi + 0x84]
push dword [edi + 0x80]
push dword [edi + 4]
call fcn.004aac00
mov ecx, dword [edi + 0x84]
xor ebx, ebx
add esp, 0xc
test eax, eax
cmovg ebx, eax
cmp ebx, ecx
jbe 0x42299a
mov eax, dword [esi + 4]
xor edx, edx
xor ecx, ecx
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], ecx
jmp 0x422900
mov edx, dword [edi + 0x80]
mov eax, dword [esi + 4]
add edx, ebx
sub ecx, ebx
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], ecx
jmp 0x422900
cmp eax, 0xffffffff
je 0x422a4e
cmp eax, 1
je 0x422a4e
cmp dword [ebp + 0x14], 0
jne 0x422a27
mov ecx, dword [ebp + 0x10]
jmp 0x422850
cmp eax, 1
jne 0x4229f2
lea ecx, [esp + 0x50]
call fcn.004127a0
mov ecx, dword [esi + 4]
push eax
add ecx, 0x30
call fcn.00417cf0
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00406460
test eax, eax
je 0x422a14
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push ecx
push edi
jmp 0x422b7d
mov eax, dword [esi + 0x20]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push ecx
push edi
jmp 0x422b7d
mov edx, dword [esi + 4]
push esi
push ecx
push 0
add edx, 0x78
lea ecx, [esp + 0x3c]
call fcn.00420f60
mov ecx, dword [esi]
add esp, 8
push eax
call fcn.00422e00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [esi + 4]
lea ecx, [esp + 0x38]
call fcn.004127a0
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [edi + 0x30]
call fcn.00422bd0
mov ecx, eax
call fcn.00422ba0
test al, al
je 0x422aaf
lea ecx, [esp + 0x58]
call fcn.00421580
mov ecx, dword [esi + 4]
push eax
add ecx, 0x30
call fcn.00417cf0
mov ecx, dword [esi + 4]
push esi
lea eax, [ecx + 0x64]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.00421210
mov ecx, dword [esi]
mov edx, eax
call fcn.00422f00
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
lea ecx, [edi + 0x30]
call fcn.00422e80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x20]
push 1
push eax
call fcn.00418820
add esp, 8
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push 1
call fcn.004101a0
push eax
lea ecx, [esp + 0x20]
call fcn.00419e90
mov ecx, dword [esi + 4]
add ecx, 8
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
cmp eax, dword [esp + 0x18]
jne 0x422b5c
cmp edx, dword [esp + 0x1c]
jne 0x422b5c
lea eax, [esp + 0x20]
push 2
push eax
call fcn.00418820
add esp, 8
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push 2
call fcn.004101a0
push eax
lea ecx, [esp + 0x20]
call fcn.00419e90
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
add ecx, 8
call fcn.00417cf0
mov edx, dword [esi + 4]
lea ecx, [esp + 0x78]
push esi
add edx, 0x78
call fcn.00420f50
mov ecx, dword [esi]
push eax
call fcn.00422e00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
call fcn.00422e80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push ecx
lea eax, [esi + 0x18]
push eax
mov ecx, dword [esi + 4]
call fcn.004212a0
add esp, 4
add esi, 0x24
push eax
push esi
call fcn.00423040
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10