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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x421b2c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x7c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
add eax, ebx
mov edx, eax
add edx, 0x10
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x10]
mov edi, dword [edx]
mov edx, eax
add edx, 0x18
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
mov dword [ebp - 0x18], edx
mov edx, eax
add edx, 0x1c
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
mov dword [ebp - 0x1c], edx
mov edx, eax
add edx, 0x20
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
mov dword [ebp - 0x20], edx
add eax, 0x24
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, esi
cmp eax, 0xffff
jbe 0x421a1f
lea eax, [ebp - 0x2c]
mov edx, esi
call fcn.00404fcc
mov edi, dword [ebp - 0x18]
test edi, edi
jbe 0x421a24
mov esi, 1
mov eax, dword [ebp - 0x20]
add eax, ebx
mov edx, esi
dec edx
shl edx, 2
add eax, edx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add edx, ebx
call fcn.00404fcc
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
call fcn.004051e0
jne 0x421a19
mov eax, dword [ebp - 0x24]
add eax, ebx
mov edx, esi
dec edx
add edx, edx
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov dword [ebp - 0x28], eax
jmp 0x421a24
inc esi
dec edi
jne 0x4219d3
jmp 0x421a24
sub eax, edi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
add eax, ebx
mov edx, dword [ebp - 0x28]
shl edx, 2
add eax, edx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov esi, dword [edx]
mov eax, dword [ebp - 0xc]
cmp esi, eax
jb 0x421b0c
add eax, dword [ebp - 8]
cmp esi, eax
ja 0x421b0c
lea eax, [ebp - 0x2c]
mov edx, esi
add edx, ebx
call fcn.00404fcc
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
call fcn.00404e6c
jmp 0x421a9f
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ebp - 0x30]
mov eax, 0x421b48
call fcn.0040537c
push eax
mov eax, dword [ebp - 0x30]
call fcn.00405094
pop edx
sub eax, edx
push eax
mov edx, dword [ebp - 0x30]
mov eax, 0x421b48
call fcn.0040537c
mov edx, eax
inc edx
mov eax, dword [ebp - 0x30]
pop ecx
call fcn.004052f4
mov edx, dword [ebp - 0x30]
mov eax, 0x421b48
call fcn.0040537c
test eax, eax
jg 0x421a68
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x2c]
call fcn.00405094
push eax
mov eax, dword [ebp - 0x30]
call fcn.00405094
pop ecx
sub ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x2c]
call fcn.004052f4
mov eax, dword [ebp - 0x2c]
call fcn.00405294
mov ebx, eax
push ebx
call sub.kernel32.dll_GetModuleHandleA_2
mov edi, eax
test edi, edi
jne 0x421af4
push ebx
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
test edi, edi
jbe 0x421b11
mov eax, dword [ebp - 0x30]
call fcn.00405294
push eax
push edi
call fcn.00421924
mov dword [ebp - 4], eax
jmp 0x421b11
add ebx, esi
mov dword [ebp - 4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421b33
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00404df8
ret