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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], eax
xor ecx, ecx
mov dword [esp + 0x14], edi
mov esi, edx
mov dword [esp + 0xc], ecx
cmp byte [edi + 0xc], cl
je 0x421210
test byte [esi + 0x1c], 4
mov ecx, dword [esi + 0x14]
je 0x4211e1
mov eax, dword [ecx + 0x18]
cmp eax, dword [esi + 0x18]
jb 0x4211e1
cmp dword [ecx + 0x60], 0
je 0x421210
mov ecx, esi
call fcn.0041ec00
jmp 0x421208
mov eax, dword [ecx + 0x28]
test eax, eax
jne 0x4214e9
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
mov ecx, esi
jbe 0x421203
call fcn.00420780
jmp 0x421208
call fcn.004206b0
test eax, eax
jne 0x4214e9
test byte [esi + 0x1c], 2
je 0x421225
mov ecx, esi
call fcn.0041ec00
test eax, eax
jne 0x4214e9
movzx eax, word [esi + 0x1c]
test al, 8
je 0x42123a
cmp dword [ebp + 0xc], 0
jne 0x42123a
mov ecx, dword [esi + 0x18]
mov dword [esp + 0xc], ecx
and eax, 0xfff7
mov word [esi + 0x1c], ax
mov eax, dword [edi + 0xd0]
push 0
push dword [esp + 0x1c]
push dword [eax + 0x2c]
call dword [0x4d9b24]
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x421268
xor ebx, ebx
jmp 0x42130b
mov ebx, dword [ecx + 4]
mov eax, dword [edi + 0xd0]
cmp dword [ebx], 0
jne 0x421289
mov edx, dword [esp + 0x18]
push ecx
mov ecx, eax
call fcn.0041a350
add esp, 4
mov ebx, eax
jmp 0x421290
inc dword [eax + 0xc]
inc word [ebx + 0x1e]
test ebx, ebx
je 0x42130b
mov ax, word [ebx + 0x1c]
and ax, 8
or word [esi + 0x1c], ax
cmp byte [edi + 0xc], 0
je 0x4212b3
mov edx, dword [edi + 0x18]
mov ecx, ebx
inc edx
call fcn.0041a580
jmp 0x42130b
test byte [ebx + 0x1c], 2
je 0x4212f2
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + 8], ebx
jne 0x4212c7
mov eax, dword [ebx + 0x24]
mov dword [ecx + 8], eax
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
test edx, edx
je 0x4212d6
mov dword [edx + 0x24], eax
jmp 0x4212d9
mov dword [ecx + 4], eax
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
test edx, edx
je 0x4212e8
mov dword [edx + 0x20], eax
jmp 0x4212f2
mov dword [ecx], eax
test eax, eax
jne 0x4212f2
mov byte [ecx + 0x21], 2
mov eax, dword [ebx + 0xc]
push 1
dec dword [eax + 0xc]
mov eax, dword [ebx + 0xc]
push dword [ebx]
push dword [eax + 0x2c]
call dword [0x4d9b28]
add esp, 0xc
mov eax, dword [esi + 0x18]
mov ecx, esi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
call fcn.0041a580
movzx eax, word [esi + 0x1c]
test al, 0x11
je 0x42136f
and eax, 0xffef
mov word [esi + 0x1c], ax
test al, 1
je 0x42136f
xor eax, 3
mov dword [esi + 0x24], 0
mov word [esi + 0x1c], ax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov dword [esi + 0x20], ecx
test ecx, ecx
je 0x421351
mov dword [ecx + 0x24], esi
jmp 0x42135e
cmp byte [eax + 0x20], 0
mov dword [eax + 4], esi
je 0x42135e
mov byte [eax + 0x21], 1
cmp dword [eax + 8], 0
mov dword [eax], esi
jne 0x42136f
test byte [esi + 0x1c], 8
jne 0x42136f
mov dword [eax + 8], esi
cmp byte [edi + 0xc], 0
je 0x4213d4
test ebx, ebx
je 0x4213d4
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.0041a580
test byte [ebx + 0x1c], 0x20
je 0x4213cd
mov eax, dword [ebx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [ebx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], ebx
push dword [ebx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ebx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004c2a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x24]
add esp, 0x10
jmp 0x4213d4
mov ecx, ebx
call fcn.0041a3d0
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x4214e7
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0xc8]
push ebx
push edi
call eax
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421426
cmp ebx, dword [edi + 0x1c]
ja 0x421412
push dword [edi + 0xcc]
mov ecx, dword [edi + 0x38]
mov edx, ebx
call fcn.00419dc0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
or word [eax + 0x1c], 8
mov edx, dword [esp + 0x18]
movzx eax, word [edx + 0x1c]
test al, 0x11
je 0x421489
and eax, 0xffef
mov word [edx + 0x1c], ax
test al, 1
je 0x421485
xor eax, 3
mov dword [edx + 0x24], 0
mov word [edx + 0x1c], ax
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov dword [edx + 0x20], ecx
test ecx, ecx
je 0x421467
mov dword [ecx + 0x24], edx
jmp 0x421474
cmp byte [eax + 0x20], 0
mov dword [eax + 4], edx
je 0x421474
mov byte [eax + 0x21], 1
cmp dword [eax + 8], 0
mov dword [eax], edx
jne 0x421485
test byte [edx + 0x1c], 8
jne 0x421485
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
test byte [edx + 0x1c], 0x20
je 0x4214e0
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004c2a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.0041a3d0
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret