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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x4c3014]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
mov eax, edx
mov dword [esp + 0x20], ecx
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, dword [ebp + 8]
inc ebx
push esi
mov dword [esp + 0x30], edx
xor esi, esi
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], esi
push edi
test eax, eax
je 0x421878
cmp byte [eax], dl
je 0x421878
xor edi, edi
jmp 0x42187a
mov edi, ebx
test eax, eax
je 0x4218e1
mov edx, str.:memory:
xor ecx, ecx
movzx eax, byte [eax + ecx]
cmp al, byte [edx + ecx]
jne 0x4218dd
mov eax, dword [esp + 0x1c]
inc ecx
cmp ecx, 9
jne 0x421885
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, ebx
mov dword [esp + 0x2c], ebx
or ecx, 2
mov dword [esp + 0x30], ecx
test eax, 0x100
je 0x4218c7
test edx, edx
jne 0x4218ba
test edi, edi
je 0x4218c7
and eax, 0xfffffeff
or eax, 0x200
mov dword [ebp + 0x14], eax
push 0x30
pop ecx
call fcn.00413fa6
mov ebx, eax
test ebx, ebx
jne 0x4218fd
push 7
pop eax
jmp 0x421ce0
mov ecx, dword [esp + 0x18]
test edi, edi
je 0x4218eb
cmp byte [ecx + 0x40], 2
je 0x421898
mov eax, dword [ebp + 0x14]
test al, al
js 0x42189b
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dword [esp + 0x2c], edx
jmp 0x4218a7
mov eax, dword [esp + 0x18]
mov byte [ebx + 8], 0
mov dword [ebx], eax
mov dword [ebx + 0x20], ebx
mov dword [ebx + 0x24], 1
test edi, edi
jne 0x421aa6
mov eax, dword [ebp + 0x14]
cmp dword [esp + 0x2c], esi
je 0x42192a
test al, 0x40
je 0x421aa6
test eax, 0x20000
je 0x421aa6
mov ecx, dword [esp + 0x1c]
call fcn.00415cec
lea ecx, [eax + 1]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 8]
mov eax, ecx
inc edx
cmp edx, ecx
mov dword [esp + 0x24], edx
cmovg eax, edx
push eax
call fcn.00413bd0
mov edi, eax
mov byte [ebx + 9], 1
mov dword [esp + 0x24], edi
pop ecx
test edi, edi
jne 0x421974
push 7
jmp 0x421ae2
cmp dword [esp + 0x2c], esi
je 0x421a07
push dword [esp + 0x14]
push dword [esp + 0x20]
push edi
call fcn.0047e230
add esp, 0xc
push 4
pop ecx
call fcn.004137e9
push eax
mov dword [esp + 0x28], eax
call fcn.0041380c
pop ecx
push 2
pop ecx
call fcn.004137e9
push eax
mov dword [esp + 0x18], eax
call fcn.0041380c
mov edi, dword [0x4c7e0c]
pop ecx
test edi, edi
je 0x421a8a
mov eax, dword [esp + 0x20]
mov ecx, dword [edi]
mov edx, dword [ecx + 0xa8]
mov ecx, eax
mov al, byte [ecx]
cmp al, byte [edx]
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x20]
jne 0x421a38
cmp byte [esp + 0xf], 0
je 0x421a03
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x20]
jne 0x421a38
add ecx, 2
add edx, 2
cmp byte [esp + 0xf], 0
jne 0x4219d1
xor ecx, ecx
jmp 0x421a3d
mov eax, dword [esp + 0x28]
push edi
push dword [esp + 0x28]
mov byte [edi], 0
push dword [esp + 0x24]
push eax
call dword [eax + 0x24]
mov esi, eax
add esp, 0x10
mov dword [esp + 0x10], esi
test esi, esi
je 0x42198f
push edi
call fcn.00413de1
pop ecx
jmp 0x421ae3
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x421a4b
mov ecx, dword [edi]
mov edx, dword [esp + 0x28]
cmp dword [ecx], edx
je 0x421a58
mov edi, dword [edi + 0x44]
test edi, edi
jne 0x4219c7
jmp 0x421a8a
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x14]
sub edx, 1
js 0x421a84
mov eax, dword [eax + 0x10]
mov ecx, edx
shl ecx, 4
add eax, 4
add ecx, eax
mov eax, dword [ecx]
test eax, eax
je 0x421a7c
cmp dword [eax + 4], edi
je 0x421ac1
sub ecx, 0x10
sub edx, 1
jns 0x421a71
mov dword [ebx + 4], edi
inc dword [edi + 0x40]
push dword [esp + 0x14]
call fcn.0041382a
pop ecx
push dword [esp + 0x20]
call fcn.00413de1
pop ecx
test edi, edi
jne 0x421d18
push 0x54
pop ecx
call fcn.00413fa6
mov edi, eax
test edi, edi
jne 0x421af1
mov dword [esp + 0x10], 7
jmp 0x421cb8
push dword [esp + 0x14]
call fcn.0041382a
mov edx, dword [esp + 0x28]
pop ecx
push edx
call fcn.0041382a
pop ecx
push dword [esp + 0x20]
call fcn.00413de1
pop ecx
push 0x13
pop esi
push ebx
call fcn.00413de1
pop ecx
mov eax, esi
jmp 0x421ce0
push ecx
push dword [ebp + 0x14]
mov edx, edi
push dword [esp + 0x38]
push ecx
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
call fcn.0041cd34
mov esi, eax
add esp, 0x14
mov dword [esp + 0x10], esi
test esi, esi
jne 0x421ca9
mov edx, dword [esp + 0x18]
mov ecx, dword [edi]
mov eax, dword [edx + 0x28]
mov dword [ecx + 0x80], eax
mov eax, dword [edx + 0x2c]
mov dword [ecx + 0x84], eax
call fcn.0041c491
mov esi, dword [edi]
xor eax, eax
push 0x64
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x40]
push eax
call fcn.0047ed30
mov ecx, dword [esi + 0x3c]
xor eax, eax
add esp, 0xc
cmp dword [ecx], eax
je 0x421b7b
push eax
push eax
push 0x64
lea edx, [esp + 0x44]
call fcn.00413463
mov esi, eax
add esp, 0xc
xor eax, eax
cmp esi, 0x20a
cmove esi, eax
mov dword [esp + 0x10], esi
jmp 0x421b7d
mov esi, eax
test esi, esi
jne 0x421ca9
mov eax, dword [esp + 0x30]
mov byte [edi + 0x10], al
mov eax, dword [esp + 0x18]
mov dword [edi + 4], eax
mov eax, dword [edi]
lea ecx, [eax + 0xb0]
mov dword [eax + 0xb4], edi
mov eax, dword [eax + 0x3c]
mov dword [ecx], fcn.004217ef
mov edx, dword [eax]
test edx, edx
je 0x421bba
push ecx
push 0xf
push eax
call dword [edx + 0x28]
add esp, 0xc
mov dword [ebx + 4], edi
mov esi, dword [edi]
and dword [edi + 8], 0
and dword [edi + 0xc], 0
cmp byte [esi + 0xe], 0
je 0x421bd4
xor eax, eax
inc eax
or word [edi + 0x16], ax
movzx ecx, byte [esp + 0x49]
lea edx, [edi + 0x20]
movzx eax, byte [esp + 0x48]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov dword [edx], ecx
cmp ecx, 0x200
jb 0x421c2b
cmp ecx, 0x10000
ja 0x421c2b
lea eax, [ecx - 1]
test ecx, eax
jne 0x421c2b
mov cl, byte [esp + 0x4c]
push 2
pop eax
or word [edi + 0x16], ax
mov eax, dword [esp + 0x6c]
bswap eax
test eax, eax
setne al
mov byte [edi + 0x11], al
mov eax, dword [esp + 0x78]
bswap eax
test eax, eax
setne al
mov byte [edi + 0x12], al
jmp 0x421c41
xor eax, eax
mov dword [edx], eax
cmp dword [esp + 0x1c], eax
je 0x421c3f
cmp dword [esp + 0x2c], eax
jne 0x421c3f
mov word [edi + 0x11], ax
mov cl, al
movzx eax, cl
mov ecx, esi
push eax
mov dword [esp + 0x18], eax
call fcn.0041c566
mov esi, eax
mov dword [esp + 0x14], esi
pop ecx
test esi, esi
jne 0x421ca9
mov eax, dword [edi + 0x20]
sub eax, dword [esp + 0x14]
mov dword [edi + 0x24], eax
cmp byte [ebx + 9], 0
je 0x421d87
xor eax, eax
inc eax
mov dword [edi + 0x40], eax
push 2
pop eax
mov ecx, eax
call fcn.004137e9
mov dword [esp + 0x14], eax
cmp dword [0x4c3afc], esi
je 0x421cf9
xor ecx, ecx
call fcn.004137e9
mov dword [edi + 0x38], eax
test eax, eax
jne 0x421cf5
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 7
mov byte [eax + 0x41], 0
test edi, edi
je 0x421cb8
mov ecx, dword [edi]
test ecx, ecx
je 0x421cb8
call fcn.0041c7ad
push edi
call fcn.00413de1
pop ecx
push ebx
call fcn.00413de1
mov eax, dword [esp + 0x38]
and dword [eax], 0
pop ecx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x421cdc
push eax
call fcn.0041382a
pop ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047c71d
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
push eax
call fcn.0041380c
mov eax, dword [0x4c7e0c]
pop ecx
push dword [esp + 0x14]
mov dword [edi + 0x44], eax
mov dword [0x4c7e0c], edi
call fcn.0041382a
pop ecx
cmp byte [ebx + 9], 0
je 0x421d87
mov eax, dword [esp + 0x18]
xor edx, edx
cmp dword [eax + 0x14], edx
jle 0x421d87
mov ecx, dword [eax + 0x10]
add ecx, 4
mov eax, dword [ecx]
test eax, eax
je 0x421d3b
cmp byte [eax + 9], 0
jne 0x421d4c
mov eax, dword [esp + 0x18]
inc edx
add ecx, 0x10
cmp edx, dword [eax + 0x14]
jl 0x421d2f
jmp 0x421d87
mov eax, ecx
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x421d4a
mov edx, dword [ebx + 4]
cmp edx, dword [eax + 4]
jae 0x421d6d
and dword [ebx + 0x1c], ecx
mov dword [ebx + 0x18], eax
mov dword [eax + 0x1c], ebx
jmp 0x421d87
cmp dword [ecx + 4], edx
jae 0x421d74
mov eax, ecx
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x421d66
mov ecx, dword [eax + 0x18]
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], eax
test ecx, ecx
je 0x421d84
mov dword [ecx + 0x1c], ebx
mov dword [eax + 0x18], ebx
mov eax, dword [esp + 0x34]
mov dword [eax], ebx
test esi, esi
jne 0x421ca9
mov esi, dword [ebx + 4]
mov ecx, ebx
call fcn.004203ea
mov ecx, ebx
call fcn.0042045c
cmp dword [esi + 0x30], 0
jne 0x421ccd
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov esi, dword [eax + 0xcc]
mov ecx, esi
mov dword [esi + 0x10], 0x7d0
call fcn.004199ba
push eax
push dword [esi + 0x28]
call dword [0x4c3b74]
pop ecx
jmp 0x421ccc