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

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x41b517
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x41b516
push esi
push ebp
call fcn.0041b040
add esp, 8
test byte [esi + 8], 8
je 0x41b426
movzx eax, word [esi + 0x14]
mov ecx, dword [esi + 0x10]
push eax
push ecx
push ebp
call fcn.004206e0
add esp, 0xc
test byte [esi + 8], 0x10
je 0x41b2b1
test dword [ebp + 0x74], 0x80000
je 0x41b296
cmp byte [esi + 0x19], 3
jne 0x41b296
xor edx, edx
xor eax, eax
cmp dx, word [esi + 0x16]
jae 0x41b296
nop
mov ecx, dword [esi + 0x4c]
or dl, 0xff
sub dl, byte [ecx + eax]
inc eax
mov byte [ecx + eax - 1], dl
movzx ecx, word [esi + 0x16]
cmp eax, ecx
jl 0x41b280
movzx edx, byte [esi + 0x19]
movzx eax, word [esi + 0x16]
push edx
mov edx, dword [esi + 0x4c]
push eax
lea ecx, [esi + 0x50]
push ecx
push edx
push ebp
call fcn.00420cb0
add esp, 0x14
test byte [esi + 8], 0x20
je 0x41b2c9
movzx eax, byte [esi + 0x19]
push eax
lea ecx, [esi + 0x5a]
push ecx
push ebp
call fcn.00420e20
add esp, 0xc
test byte [esi + 8], 0x40
je 0x41b2e1
movzx edx, word [esi + 0x14]
mov eax, dword [esi + 0x7c]
push edx
push eax
push ebp
call fcn.00420f90
add esp, 0xc
test dword [esi + 8], 0x100
je 0x41b300
movzx ecx, byte [esi + 0x6c]
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0x64]
push ecx
push edx
push eax
push ebp
call fcn.00421650
add esp, 0x10
test dword [esi + 8], 0x400
je 0x41b345
mov ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0xac]
movzx eax, byte [esi + 0xb5]
push ecx
movzx ecx, byte [esi + 0xb4]
push edx
mov edx, dword [esi + 0xa8]
push eax
mov eax, dword [esi + 0xa4]
push ecx
mov ecx, dword [esi + 0xa0]
push edx
push eax
push ecx
push ebp
call fcn.00421700
add esp, 0x20
test dword [esi + 8], 0x4000
je 0x41b36d
mov edx, dword [esi + 0xe4]
mov eax, dword [esi + 0xe0]
movzx ecx, byte [esi + 0xdc]
push edx
push eax
push ecx
push ebp
call fcn.00421930
add esp, 0x10
test byte [esi + 8], 0x80
je 0x41b389
movzx edx, byte [esi + 0x78]
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push edx
push eax
push ecx
push ebp
call fcn.004219f0
add esp, 0x10
push edi
mov edi, 0x200
test dword [esi + 8], edi
je 0x41b3a4
lea edx, [esi + 0x3c]
push edx
push ebp
call fcn.00421aa0
add esp, 8
or dword [ebp + 0x6c], edi
test dword [esi + 8], 0x2000
push ebx
je 0x41b3de
xor edi, edi
cmp dword [esi + 0xd8], edi
jle 0x41b3de
xor ebx, ebx
lea ebx, [ebx]
mov eax, dword [esi + 0xd4]
add eax, ebx
push eax
push ebp
call fcn.00422330
inc edi
add esp, 8
add ebx, 0x10
cmp edi, dword [esi + 0xd8]
jl 0x41b3c0
xor ebx, ebx
cmp dword [esi + 0x30], ebx
jle 0x41b491
xor edi, edi
jmp 0x41b3f0
mov ecx, dword [esi + 0x38]
mov eax, dword [edi + ecx]
test eax, eax
jle 0x41b436
mov edx, dword [edi + ecx + 0x18]
lea eax, [edi + ecx]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
push ebp
call fcn.00421440
mov ecx, dword [esi + 0x38]
add esp, 0x18
mov dword [edi + ecx], 0xfffffffd
jmp 0x41b484
cmp byte [esi + 0x19], 3
jne 0x41b260
push ebp
call fcn.0041cb80
jne 0x41b45e
mov edx, dword [edi + ecx + 8]
lea eax, [edi + ecx]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ecx
push 0
push edx
push eax
push ebp
call fcn.00421320
mov ecx, dword [esi + 0x38]
add esp, 0x14
mov dword [edi + ecx], 0xfffffffe
jmp 0x41b484
cmp eax, 0xffffffff
jne 0x41b484
mov edx, dword [edi + ecx + 4]
lea eax, [edi + ecx]
mov ecx, dword [eax + 8]
push 0
push ecx
push edx
push ebp
call fcn.00421230
mov eax, dword [esi + 0x38]
add esp, 0x10
mov dword [edi + eax], 0xfffffffd
inc ebx
add edi, 0x1c
cmp ebx, dword [esi + 0x30]
jl 0x41b3f0
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x41b514
mov ecx, dword [esi + 0xbc]
lea edx, [eax + eax*4]
lea eax, [ecx + edx*4]
cmp ecx, eax
jae 0x41b514
lea edi, [ecx + 0x10]
mov edi, edi
lea ebx, [edi - 0x10]
push ebx
push ebp
call fcn.0041d140
add esp, 8
cmp eax, 1
je 0x41b4f8
mov cl, byte [edi]
test cl, cl
je 0x41b4f8
test cl, 2
je 0x41b4f8
test cl, 0xc
jne 0x41b4f8
test byte [edi - 0xd], 0x20
jne 0x41b4e6
cmp eax, 3
je 0x41b4e6
test dword [ebp + 0x70], 0x10000
je 0x41b4f8
mov ecx, dword [edi - 4]
mov edx, dword [edi - 8]
push ecx
push edx
push ebx
push ebp
call fcn.0041fc60
add esp, 0x10
mov eax, dword [esi + 0xc0]
mov ecx, dword [esi + 0xbc]
lea eax, [eax + eax*4]
add edi, 0x14
lea edx, [ecx + eax*4]
lea eax, [edi - 0x10]
cmp eax, edx
jb 0x41b4b0
pop ebx
pop edi
pop esi
pop ebp
ret