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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x160], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], edx
xor esi, esi
lea edx, [eax + edi]
cmp eax, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x50], edx
jge 0x422d2b
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x18]
add ebx, edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], edi
cmp edx, dword [esp + 0x48]
mov dword [esp + 0x2c], edx
jge 0x422d15
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x24], edi
jmp 0x422b84
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov ebx, 0x10
cmp edi, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ebx
jge 0x422b9d
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x38]
cmp edi, ebx
jge 0x422bab
mov dword [esp + 0x28], edi
mov ebx, edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x5c], eax
add eax, ebx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x58]
push eax
add edi, edx
lea eax, [esp + 0x6c]
mov dword [esp + 0x5c], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
push eax
mov eax, dword [esp + 0x48]
push eax
mov dword [esp + 0x6c], edi
call edx
imul ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
lea edi, [eax + esi]
lea ecx, [esp + 0x12]
push ecx
lea edx, [esp + 0x17]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x50]
push ecx
inc esi
mov eax, ebx
lea ecx, [esp + 0x78]
mov byte [edi], 0
mov dword [esp + 0x64], esi
call fcn.0042b590
mov al, byte [esp + 0x23]
add esp, 0x10
cmp dword [esp + 0x34], 0
je 0x422c20
cmp al, byte [esp + 0x3c]
je 0x422c39
or byte [edi], 2
mov edx, dword [esp + 0x1c]
mov byte [edx + esi], al
mov dword [esp + 0x34], 1
mov byte [esp + 0x3c], al
inc esi
jmp 0x422c3d
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x4c], 0
jne 0x422cf0
or byte [edi], 8
cmp dword [esp + 0x44], 0
mov al, byte [edi]
je 0x422c7b
cmp dword [esp + 0x18], 0
mov cl, byte [esp + 0x12]
je 0x422c65
cmp cl, byte [esp + 0x11]
je 0x422c87
or al, 4
mov byte [edi], al
mov byte [edx + esi], cl
mov dword [esp + 0x18], 1
mov byte [esp + 0x11], cl
inc esi
jmp 0x422c87
or al, 0x10
mov dword [esp + 0x18], 0
mov byte [edi], al
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
add edx, esi
push edx
lea eax, [esp + 0x7c]
call fcn.00422d50
add esp, 0x14
add esi, eax
test eax, eax
jne 0x422cf0
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x48]
mov byte [edi], 1
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
push eax
call edx
mov ecx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x6c]
push eax
add ecx, esi
push ecx
call fcn.00462180
add esp, 0xc
add esi, ebx
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x24], 0x10
mov ecx, dword [esp + 0x20]
add eax, 0x10
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
jl 0x422b80
mov edx, dword [ebp + 0x10]
sub dword [esp + 0x38], 0x10
add eax, 0x10
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x30], eax
jl 0x422b62
mov ecx, dword [esp + 0x16c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0045c77f
mov esp, ebp
pop ebp
ret 0x18