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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00420ea0
mov eax, dword [edi + 8]
test al, 8
jne 0x42113b
cmp byte [edi + 0x19], 3
je 0x4212bb
test al, 0x10
jne 0x421160
test al, 0x20
jne 0x421194
test al, 0x40
jne 0x4211b9
test ah, 1
jne 0x4211df
test ah, 4
jne 0x42120c
test eax, 0x80
jne 0x42126d
test ah, 2
jne 0x42129a
mov ecx, dword [edi + 0x30]
xor esi, esi
cmp ecx, 0
jle 0x4210d2
mov edx, dword [edi + 0x38]
nop
lea esi, [esi]
mov ebx, esi
shl ebx, 4
mov eax, dword [ebx + edx]
test eax, eax
jle 0x4210e0
mov edx, dword [ebp + 8]
mov ecx, str.Unable_to_write_international_text_n
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.004181f0
mov edx, dword [edi + 0x38]
mov dword [ebx + edx], 0xfffffffd
mov ecx, dword [edi + 0x30]
inc esi
cmp ecx, esi
jg 0x4210a0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
je 0x421108
inc eax
jne 0x4210cd
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov eax, dword [ebx + edx + 8]
mov dword [esp + 8], eax
mov ecx, dword [ebx + edx + 4]
mov edx, dword [ebp + 8]
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.00423cf0
jmp 0x4210c0
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov eax, dword [ebx + edx + 8]
mov dword [esp + 8], eax
mov ecx, dword [ebx + edx + 4]
mov eax, dword [ebp + 8]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00423ec0
mov edx, dword [edi + 0x38]
mov dword [ebx + edx], 0xfffffffe
jmp 0x4210ca
movzx ebx, word [edi + 0x14]
mov edx, dword [ebp + 8]
mov dword [esp + 8], ebx
mov ecx, dword [edi + 0x10]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00422f40
mov eax, dword [edi + 8]
test al, 0x10
je 0x421058
movzx eax, byte [edi + 0x19]
lea ebx, [edi + 0x50]
mov edx, dword [ebp + 8]
mov dword [esp + 0x10], eax
movzx esi, word [edi + 0x16]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov ecx, dword [edi + 0x4c]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.004236f0
mov eax, dword [edi + 8]
test al, 0x20
je 0x421060
movzx ebx, byte [edi + 0x19]
lea ecx, [edi + 0x5a]
mov edx, dword [ebp + 8]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp], edx
call fcn.00423810
mov eax, dword [edi + 8]
test al, 0x40
je 0x421068
movzx edx, word [edi + 0x14]
mov esi, dword [ebp + 8]
mov dword [esp + 8], edx
mov eax, dword [edi + 0x7c]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00423960
mov eax, dword [edi + 8]
test ah, 1
je 0x421071
movzx eax, byte [edi + 0x6c]
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov esi, dword [edi + 0x68]
mov dword [esp + 8], esi
mov ebx, dword [edi + 0x64]
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.004245c0
mov eax, dword [edi + 8]
test ah, 4
je 0x42107a
mov ebx, dword [edi + 0xb0]
mov dword [esp + 0x1c], ebx
mov ecx, dword [edi + 0xac]
mov dword [esp + 0x18], ecx
movzx edx, byte [edi + 0xb5]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
movzx eax, byte [edi + 0xb4]
mov dword [esp + 0x10], eax
mov esi, dword [edi + 0xa8]
mov dword [esp + 0xc], esi
mov ebx, dword [edi + 0xa4]
mov dword [esp + 8], ebx
mov ecx, dword [edi + 0xa0]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00424670
mov eax, dword [edi + 8]
test eax, 0x80
je 0x421085
movzx ecx, byte [edi + 0x78]
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov edx, dword [edi + 0x74]
mov dword [esp + 8], edx
mov eax, dword [edi + 0x70]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00424990
mov eax, dword [edi + 8]
test ah, 2
je 0x42108e
mov esi, dword [ebp + 8]
lea eax, [edi + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00424a40
mov ebx, dword [ebp + 8]
or dword [ebx + 0x58], 0x200
jmp 0x42108e
mov esi, dword [ebp + 8]
mov eax, str.Valid_palette_required_for_paletted_images_n
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004183e0
mov eax, dword [edi + 8]
jmp 0x421158